--
-- Created by IntelliJ IDEA.
-- User: jun
-- Date: 2019/8/16
-- Time: 21:22
-- To change this template use File | Settings | File Templates.
--

if AbilitiesNames == nil then
    AbilitiesNames = {}
    AbilitiesNames.ability_empty="ability_empty"
    AbilitiesNames.ability_ring_gains="ability_ring_gains"
    AbilitiesNames.ability_tp="ability_tp"
    AbilitiesNames.ability_respawn_hero="ability_respawn_hero"
    AbilitiesNames.modifier_dummy="modifier_dummy"
    AbilitiesNames.modifier_courier="modifier_courier"
    AbilitiesNames.modifier_water_debuff="modifier_water_debuff"
    AbilitiesNames.modifier_boss="modifier_boss"
    AbilitiesNames.modifier_tower="modifier_tower"
    AbilitiesNames.modifier_bot="modifier_bot"
    AbilitiesNames.modifier_points="modifier_points"
    AbilitiesNames.modifier_money_tree="modifier_money_tree"
end


if UnitNames==nil then
    UnitNames={}
    UnitNames.npc_dummy_unit="npc_dummy_unit"
end


if NetTableNames==nil then
    NetTableNames={}
    NetTableNames.abilities_shop="abilities_shop"
    NetTableNames.abilities_pool="abilities_pool"
    NetTableNames.game_config="game_config"
    NetTableNames.resources="resources"
    NetTableNames.talent_manager="talent_manager"
    NetTableNames.team_color="team_color"
    NetTableNames.player_info="player_info"
    NetTableNames.end_game="end_game"
    NetTableNames.modifier_points="modifier_points"
end

if GameEventNames==nil then
    GameEventNames={}
    GameEventNames.display_center_msg="display_center_msg"
    GameEventNames.display_custom_error="display_custom_error"
    GameEventNames.buy_ability="buy_ability"
    GameEventNames.refresh_ability="refresh_ability"
    GameEventNames.add_bot="add_bot"
    GameEventNames.update_bot="update_bot"
    GameEventNames.toggle_abilities_shop="toggle_abilities_shop"
    GameEventNames.boss_countdown="boss_countdown"
    GameEventNames.select_unit="select_unit"
    GameEventNames.drag_ability="drag_ability"
    --GameEventNames.talent_manager_choose_talent="talent_manager_choose_talent"

end

if GameRules.G == nil then
    GameRules.G = {}
    GameRules.G.teamColorList = {
        [DOTA_TEAM_CUSTOM_1] = { 197, 77, 168 },
        [DOTA_TEAM_CUSTOM_2] = { 255, 108, 0 },
        [DOTA_TEAM_CUSTOM_3] = { 52, 85, 255 },
        [DOTA_TEAM_CUSTOM_4] = { 101, 212, 19 },
        [DOTA_TEAM_CUSTOM_5] = { 129, 83, 54 },
        [DOTA_TEAM_CUSTOM_6] = { 27, 192, 216 },
        [DOTA_TEAM_CUSTOM_7] = { 199, 228, 13 },
        [DOTA_TEAM_CUSTOM_8] = { 140, 42, 244 }
    }


    GameRules.G.firstBlood=false;
    GameRules.G.fatalErrorTimes=0;
    GameRules.G.playerSteamIdMap={}
    GameRules.G.validTeamNumber=0;
    GameRules.G.gameStartTime=0;
    GameRules.G.canSpawnCreeps=false;
    GameRules.G.isGameOver=false;


    GameRules.G.heroesKV = LoadKeyValues('scripts/npc/npc_heroes.txt')
    GameRules.G.itemsKV = LoadKeyValues('scripts/npc/items.txt')
    GameRules.G.banItemsKV = LoadKeyValues("scripts/kv/ban_items.txt")
    GameRules.G.heroesCustomKV = LoadKeyValues('scripts/npc/npc_heroes_custom.txt')
    GameRules.G.abilitiesKV= LoadKeyValues('scripts/npc/npc_abilities.txt')
    GameRules.G.cusAbilitiesKV= LoadKeyValues('scripts/npc/npc_abilities_custom.txt')
    GameRules.G.unitsKV = LoadKeyValues('scripts/npc/npc_units.txt')
    GameRules.G.cusUnitsKV = LoadKeyValues('scripts/npc/npc_units_custom.txt')
    GameRules.G.ovrAbilitiesKV = LoadKeyValues('scripts/npc/npc_abilities_override.txt')
    GameRules.G.banAbilitiesKV = LoadKeyValues("scripts/kv/ban_abilities.txt")
    GameRules.G.modifiersKV = LoadKeyValues("scripts/kv/modifiers.txt")


end



if AllTeamIndex==nil then
    AllTeamIndex = {DOTA_TEAM_CUSTOM_1, DOTA_TEAM_CUSTOM_2, DOTA_TEAM_CUSTOM_3, DOTA_TEAM_CUSTOM_4,
                  DOTA_TEAM_CUSTOM_5, DOTA_TEAM_CUSTOM_6, DOTA_TEAM_CUSTOM_7, DOTA_TEAM_CUSTOM_8}
end

if ParticleNames==nil then
    ParticleNames={}
    ParticleNames.tp="particles/maps/teleport.vpcf"
    ParticleNames.tp_start="particles/econ/events/fall_major_2015/teleport_start_fallmjr_2015_l_flash.vpcf"
    ParticleNames.tp_end="particles/econ/events/fall_major_2015/teleport_start_fallmjr_2015_l.vpcf"
    ParticleNames.level_up="particles/ui_mouseactions/ping_flareup.vpcf"
    ParticleNames.spawn="particles/addons_gameplay/player_deferred_light.vpcf"
    ParticleNames.spawn_hero="particles/units/heroes/hero_puck/puck_dreamcoil_tether.vpcf"
    ParticleNames.spawn_hero2="particles/units/heroes/hero_puck/puck_dreamcoil.vpcf"

    --ParticleNames.spawn_boss_buff2="particles/units/heroes/hero_bounty_hunter/bounty_hunter_track_trail_circle_1.vpcf"
    --ParticleNames.spawn_boss_buff="particles/units/heroes/hero_bounty_hunter/grimstroke_soulchain_debuff.vpcf"
    --ParticleNames.spawn_boss="particles/units/heroes/hero_grimstroke/grimstroke_soulchain_debuff.vpcf"
    --ParticleNames.spawn_boss_1="particles/econ/events/fall_major_2015/teleport_start_fallmjr_2015_lvl2_black.vpcf"
    --ParticleNames.spawn_boss_show="particles/econ/items/ogre_magi/ogre_ti8_immortal_weapon/ogre_ti8_immortal_bloodlust_buff.vpcf"

    --ParticleNames.spawn_boss_1="particles/econ/courier/courier_gold_horn/courier_gold_horn_body_ambient_e.vpcf"
    ParticleNames.first_blood="particles/econ/events/killbanners/screen_killbanner_compendium16_firstblood.vpcf"
    ParticleNames.double_kill="particles/econ/events/killbanners/screen_killbanner_compendium14_firstblood.vpcf"
    ParticleNames.triple_kill="particles/econ/events/killbanners/screen_killbanner_compendium14_doublekill.vpcf"
    ParticleNames.ultra_kill="particles/econ/events/killbanners/screen_killbanner_compendium16_triplekill.vpcf"
    ParticleNames.rampage_kill="particles/econ/events/killbanners/screen_killbanner_compendium16_multikill_generic.vpcf"
    ParticleNames.ownage_kill="particles/econ/events/killbanners/screen_killbanner_compendium16_rampage.vpcf"
    ParticleNames.water_debuff="particles/units/heroes/hero_grimstroke/grimstroke_cast2_ground_spray_1.vpcf"
    --ParticleNames.water_debuff="particles/units/heroes/hero_bloodseeker/bloodseeker_rupture.vpcf"
    ParticleNames.tower_spawn="particles/econ/items/earthshaker/earthshaker_arcana/earthshaker_arcana_spawn.vpcf"
    ParticleNames.default_kill="particles/econ/items/techies/techies_arcana/techies_suicide_kills_arcana.vpcf"
    ParticleNames.default_kill2="particles/econ/items/axe/ti9_jungle_axe/ti9_jungle_axe_culling_blade_kill_b.vpcf"
    ParticleNames.courier_death="particles/dev/library/base_emit_on_death.vpcf"
    ParticleNames.courier_death2="particles/econ/courier/courier_master_chocobo/courier_master_chocobo_ambient_death.vpcf"


end


if SoundsNames==nil then
    SoundsNames={}
    SoundsNames.tp_start="Hero_Wisp.TeleportIn"
    SoundsNames.tp_end="Hero_Wisp.TeleportOut"
    SoundsNames.ready_for_fight= "DDW.SetReady"
    SoundsNames.buy="General.Buy"
    SoundsNames.start_game="GameStart.RadiantAncient"
    SoundsNames.show_panel="Shop.PanelUp"
    SoundsNames.hide_panel="Shop.PanelDown"
    SoundsNames.level_up="General.MaleLevelUp"
    SoundsNames.time_tick="General.CastFail_AbilityInCooldown"
    SoundsNames.spawn="General.CastFail_AbilityInCooldown"
    SoundsNames.spawn_boss="DOTA_Item.Necronomicon.Activate"
    SoundsNames.spawn_boss_show="RoshanDT.Scream2"
    SoundsNames.spawn_hero="Hero_Puck.Dream_Coil"
    SoundsNames.item_drop="Item.DropWorld"
    SoundsNames.item_pickup="Item.PickUpWorld"
    SoundsNames.gold_cost="ui.comp_coins_tick"
    SoundsNames.announcer_killing_spree_announcer_kill_triple_01="announcer_killing_spree_announcer_kill_triple_01"
    SoundsNames.first_blood="announcer_killing_spree_announcer_1stblood_01"
    SoundsNames.double_kill="announcer_killing_spree_announcer_kill_double_01"
    SoundsNames.triple_kill="announcer_killing_spree_announcer_kill_triple_01"
    SoundsNames.ultra_kill="announcer_killing_spree_announcer_kill_ultra_01"
    SoundsNames.rampage_kill="announcer_killing_spree_announcer_kill_rampage_01"
    SoundsNames.ownage_kill="announcer_killing_spree_announcer_kill_ownage_01"
    SoundsNames.water_debuff="Hero_Pudge.Dismember"
    SoundsNames.warning="General.PingWarning"
    SoundsNames.tower_spawn="Hero_TemplarAssassin.Pick"
    SoundsNames.game_over="valve_ti5.stinger.dire_win"
    SoundsNames.default_death="ui.death_stinger"
    SoundsNames.default_kill="notification.teammate.kill"
    SoundsNames.courier_death="Courier.Spawn"
    --SoundsNames.water_debuff="Hero_LifeStealer.Infest"

end

if PreloadSounds==nil then
    PreloadSounds={
        "soundevents/game_sounds_heroes/game_sounds_wisp.vsndevts",
        "soundevents/game_sounds_roshan_halloween.vsndevts",
        "soundevents/game_sounds_ui_imported.vsndevts",
        "soundevents/soundevents_minigames.vsndevts",
        "soundevents/soundevents_dota_ui.vsndevts",
        "soundevents/game_sounds_heroes/game_sounds_puck.vsndevts",
        "sounds/physics/movement/hero/puck/idle_loop.vsnd",
        "soundevents/voscripts/game_sounds_vo_announcer_killing_spree.vsndevts",
        "soundevents/game_sounds_heroes/game_sounds_pudge.vsndevts",
        "soundevents/game_sounds_hero_pick.vsndevts",
        "soundevents/music/valve_ti5/soundevents_stingers.vsndevts",
        "soundevents/voscripts/game_sounds_vo_announcer.vsndevts",
        "soundevents/game_sounds.vsndevts"
        --"soundevents/game_sounds_heroes/game_sounds_life_stealer.vsndevts"
    }
end



if ModelNames==nil then
    ModelNames={}
    ModelNames.gold="models/props_gameplay/gold_coin001.vmdl"
end

if ColorHex==nil then
    ColorHex={}
    ColorHex.Warn="#FFEC40"
    ColorHex.Info=""
    ColorHex.Error="#FF0E28"
    ColorHex.Success=""
end